﻿@model CID.Web.Models.Development.ReleaseViewModel

<div class="display-label">@Html.LabelFor(m => m.Name)</div>
<div class="display-field">
    @Html.DisplayFor(model => model.Name)
</div>

<div class="display-label">@Html.LabelFor(m => m.Description)</div>
<div class="display-field">
    @Html.DisplayFor(model => model.Description)
</div>

<div class="display-label">@Html.LabelFor(m => m.Status)</div>
<div class="display-field">
    @Html.DisplayFor(model => model.Status)
</div>

<div class="display-label">@Html.LabelFor(m => m.Responsible)</div>
<div class="display-field">
    @Html.DisplayFor(model => model.Responsible)
</div>
<div class="display-label">@Html.LabelFor(m => m.Versions)</div>
<div class="display-field">
    <table>
        <tr>
            <th>Component</th>
            <th>Version</th>
        </tr>
        @foreach (var version in Model.Versions)
        {
            <tr>
                <td>
                    @Html.DisplayFor(m => version.ComponentName)  
                </td>
                <td>
                    @Html.DisplayFor(m => version.Name) 
                </td>
            </tr>
        }
    </table>
        
</div>
